<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:rich="http://richfaces.org/rich"
      xmlns:e="http://entities.br"
      xmlns:f="http://java.sun.com/jsf/core">
    <body>
        <ui:composition template="./template.xhtml">
            <ui:define name="subheader">
                <f:view locale="#{context.currentLocale}">
                    <h:form>
                        <rich:toolBar>
                            
                             <rich:menuItem>
                                    <h:outputLink>
                                        <h:outputText value="Cadastro de aluno"/>
                                        <f:param name="view" value="aluno.Aluno@Aluno"/>
                                    </h:outputLink>
                             </rich:menuItem>
                            
                             <rich:menuItem>
                                    <h:outputLink>
                                        <h:outputText value="Frequencia aluno"/>
                                        <f:param name="view" value="aluno.FrequenciaDiaria@Frequencia"/>
                                    </h:outputLink>
                             </rich:menuItem>
                            
                            <rich:menuItem>
                                    <h:outputLink>
                                        <h:outputText value="Frequencia do Dia"/>
                                        <f:param name="view" value="aluno.FrequenciaDiaria@FrequenciasRealizadas"/>
                                    </h:outputLink>
                             </rich:menuItem>

                            
                       </rich:toolBar>
                    </h:form>
                </f:view>
            </ui:define>

            <ui:define name="sidebar">
                <h:panelGroup>
                    <ul>
                        <li>
                            <h2>#{i18n['menu.label.main']}</h2>
                            <ul class="blocklist">
                                <e:liMenuItems/>
                            </ul>
                        </li>

                        <li>
                            <h2>#{i18n['menu.label.setup']}</h2>
                            <ul class="blocklist">
                                <f:view locale="#{context.currentLocale}">
                                    <h:form>
                                        <li>
                                            <e:themes>
                                                <f:selectItem itemLabel="Violet Rays" itemValue="violetRays" />
                                                <f:selectItem itemLabel="UECE" itemValue="uecePadrao" />
                                                <f:selectItem itemLabel="Blank" itemValue="avalereBlank" />
                                            </e:themes>
                                        </li>
                                        <li><e:skins/></li>                                                                                
                                        <li>
                                            <e:languages/>
                                        </li>
                                    </h:form>
                                </f:view>
                            </ul>
                        </li>
                    </ul>
                </h:panelGroup>
            </ui:define>

            <ui:define name="content">
                <h:panelGroup rendered="#{empty autoEntityBackBean.entity}">
                    <br/><br/>
                    <e:welcome/>
                    <br/><br/>
                </h:panelGroup>

                <e:view />
            </ui:define>

                <ui:define name="content">
                <h:panelGroup rendered="#{empty autoEntityBackBean.entity}">
                    <br/><br/>
                    <div class="post">
                        <center>
                            <h1 class="title">Bem vindo!</h1>
                            <p><b><i>Academia Boa Forma</i></b></p>
                            <h:graphicImage url="img/logo.png"/>
                            <div class="entry">

                            </div>
                        </center>
                    </div>
                    <br/><br/>
                </h:panelGroup>

                <e:view />
            </ui:define>
            
            
        </ui:composition>
    </body>
</html>
